package net.googlecode.demenkov.task3;

import java.math.BigDecimal;

/**
 * Represents Employees.
 *
 * @author Yura Demenkov
 */
public class Employee extends PersonalInfo {
    private int experience;

    /**
     * Basic Constructor, creates an Employee.
     *
     * @param firstName Employee's firstname.
     * @param lastName  Employee's lastname.
     */
    public Employee(final String firstName, final String lastName) {
        super(firstName, lastName);
    }

    /**
     * Gets employee's experience.
     *
     * @return peson's experience.
     */
    public int getExperience() {
        return this.experience;
    }

    /**
     * Sets employee's experience.
     *
     * @param experience person's experience.
     */
    public void setExperience(final int experience) {
        this.experience = experience;
    }

    /**
     * Sets employee has rate per hour or not.
     *
     * @param perHour true if employee has rate per hour
     */
    public void setPerHour(boolean perHour) {
        this.perHour = perHour;
    }


    /**
     * Sets employee has bonus or not.
     *
     * @param bonus true if employee has bonus
     */
    public void setBonus(boolean bonus) {
        this.bonus = bonus;
    }

}
